﻿#ifndef IPPAGE_H
#define IPPAGE_H

#include <QWidget>
#include "Window/mydialog.h"

class IpPage : public MyDialog
{
    Q_OBJECT
public:
    explicit IpPage(QWidget *parent = nullptr);

signals:

public slots:

    void OnBtnAddClicked();
    void OnBtnDelClicked();
    void OnTableDoubleClicked(int row, int column);

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();
    void UpdateTable();

    QList<IPData> queryList;
    QTableWidget *tableWidget;

    QPushButton  *btnAdd;
    QPushButton  *btnDel;
};

#endif // IPPAGE_H
